package com.cqhfan.common.utils;

import java.time.format.DateTimeFormatter;

/**
 * @author 眭传洪
 * @create 2024-11-14 20:51
 */
public class DateUtils {

    public static final String DEFAULT_DATE_TIME_FORMAT = "yyyy-MM-dd HH:mm:ss";

    private static final DateTimeFormatter DEFAULT_DATE_TIME_FORMATTER;

    static {
        DEFAULT_DATE_TIME_FORMATTER = DateTimeFormatter.ofPattern(DateUtils.DEFAULT_DATE_TIME_FORMAT);
    }

    public static DateTimeFormatter getDefaultDateTimeFormatter() {
        return DEFAULT_DATE_TIME_FORMATTER;
    }

}
